package com.cloud.weixin.project.model.dto;

import com.cloud.common.core.model.supers.Convert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import me.chanjar.weixin.common.bean.menu.WxMenuRule;

import java.util.ArrayList;
import java.util.List;

/**
 * 自定义菜单模型
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Menu extends Convert {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "子按钮")
    private List<MenuButton> button = new ArrayList<>();

    @ApiModelProperty(value = "菜单匹配规则")
    private WxMenuRule matchrule;
}
